var request = require('request');
var chai = require('chai');
var should = chai.should();
var assert = chai.assert;

describe('#上传数据测试', function() {
    it('应该能够统正确的上传数据到数据库并且完成审核统计', function(done) {
        this.timeout(12000000);
        request({
            method: 'post',
            url: 'http://61.129.33.248:8084/MetroDataApi/api/MonitorPointsGroup',
            json: JSON.stringify({
                prjId: 523,
                time: '2015-4-6',
                names: 'X01,X02,X03,X04,X05,X06,X07,X08,X09,X10',
                values: '11,22,33,44,55,66,77,88,99,110',
                psw: 'e67f21cec89c'
            })
        }, function(err, res, body) {
            if (!err) {
                console.log(body);
                done();
            }
        });
    });
});
